/*************************************************************************
	> File Name: argc-argv.c
	> Author: Angel Criss
	> Mail: abbytsing@gmail.com 
	> Created Time: Thu 16 Jan 2014 11:13:13 AM CST
    >Please run this program by ./argc-argv filename
 ************************************************************************/

#include<stdio.h>
#include<sys/types.h>
#include<unistd.h>
int main(int argc, char* argv[])
{
    if(argc<2)
    {
        printf("display the source code of a file %s flename\n",argv[0]);
        return 1;
    }
    execlp("/bin/cat","cat","-nb",argv[1],(char*)NULL);//pass the parament to argv[1]
    return 0;
}
